package com.teradyne.phoenix.client.places;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class UserPlace extends Place {

	private String placeName;

	public UserPlace() {
	}

	public UserPlace(String token) {
		this.placeName = token;
	}

	public String getPlaceName() {
		return placeName;
	}

	@Prefix("user")
	public static class Tokenizer implements PlaceTokenizer<UserPlace> {

		@Override
		public String getToken(UserPlace place) {
			return place.getPlaceName();
		}

		@Override
		public UserPlace getPlace(String token) {
			return new UserPlace(token);
		}

	}

}
